<input type="hidden" name="users" value="<?php echo $userid; ?>"/>
	<!--<input type="hidden" name="user" value="<?php echo ucfirst($this->common_model->get_username_id($userid));?>" readonly /><h4><?php echo ucfirst($this->common_model->get_username_id($userid));?></h4><br>-->
<link href='http://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'>


<div class="row-fluid">

<div class="span6" id="main-box">
<p style="padding: 10px">

<?php echo $developers; ?> Developers, <?php echo $designers; ?> Designers, <?php echo $content_writers; ?> Content Writers and 1 Pappu.
<!--	<?php 
	$a = array();
	$count = 0;
		foreach($users as $i => $user) {
			
			foreach ($user->user_type as $user_type){
				
			$a[$count++] = $user_type; 
			}
				if (!empty($i)){
				print_r($i+1);
				}
		}
	?>-->

</p>
</div>


<?php foreach ($users as $user):?>
<div class="span3" id="users">
                <div class="view view-sixth">
				<?php 
				$image=$user->profile_image; 
				if(!empty($image))
				{ 
				echo '<img width="240px" height="220px" src="'.$this->config->base_url().'assets/uploads/'.$image.'" />';
				}else{
				echo '<img width="240px" height="220px" src="'.$this->config->base_url().'assets/uploads/avatar.png" />';
				}
				?>
                    <div class="mask">
                        <h2><?php echo $user->username;?></h2>
                        <p><?php echo $user->email;?><br>
						 	<?php foreach ($user->user_type as $user_type):?>
								<?=ucfirst($user_type->name) ?><br />
                					<?php endforeach?><br>
							<?php foreach ($user->department as $user_type):?>
								<?=ucfirst($user_type->name)?><br />
                					<?php endforeach?>
									</p>
						<a class="info" href="<?php echo site_url('user/wallpage/viewwall').'/'.$user->id?>">Visit Profile</a>
                    </div>
                </div>
					</div>
   <?php endforeach; ?>      